/*
 * Copyright (c) 2009 Enio Perpetuo
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"); 
 * you may not use this file except in compliance with the License. 
 * You may obtain a copy of the License at 
 * 
 * 		http://www.apache.org/licenses/LICENSE-2.0
 *  
 * Unless required by applicable law or agreed to in writing, software 
 * distributed under the License is distributed on an "AS IS" BASIS, 
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
 * See the License for the specific language governing permissions and 
 * limitations under the License.
 *  
 */
package co.za.gvi.bind;

import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;


/**
 * <p>Java class for gviSmsMessageType complex type.
 * 
 * <p>The following schema fragment specifies the expected content contained within this class.
 * 
 * <pre>
 * &lt;complexType name="gviSmsMessageType">
 *   &lt;complexContent>
 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       &lt;sequence>
 *         &lt;element name="affiliateCode" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         &lt;element name="authenticationCode" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         &lt;element name="submitDateTime" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         &lt;element name="messageType" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         &lt;element name="recipientList" type="{}recipientListType" maxOccurs="unbounded"/>
 *         &lt;element name="customData" type="{}customDataType"/>
 *         &lt;element name="transmissionRules" minOccurs="0">
 *           &lt;complexType>
 *             &lt;complexContent>
 *               &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *                 &lt;sequence>
 *                   &lt;element name="startDateTime" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *                   &lt;element name="endDateTime" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *                   &lt;element name="validityPeriod" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *                 &lt;/sequence>
 *               &lt;/restriction>
 *             &lt;/complexContent>
 *           &lt;/complexType>
 *         &lt;/element>
 *       &lt;/sequence>
 *     &lt;/restriction>
 *   &lt;/complexContent>
 * &lt;/complexType>
 * </pre>
 * 
 * 
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "gviSmsMessageType", propOrder = {
    "affiliateCode",
    "authenticationCode",
    "submitDateTime",
    "messageType",
    "recipientList",
    "customData",
    "transmissionRules"
})
public class GviSmsMessageType {

    @XmlElement(required = true)
    protected String affiliateCode;
    @XmlElement(required = true)
    protected String authenticationCode;
    @XmlElement(required = true)
    protected String submitDateTime;
    @XmlElement(required = true)
    protected String messageType;
    @XmlElement(required = true)
    protected List<RecipientListType> recipientList;
    @XmlElement(required = true)
    protected CustomDataType customData;
    @XmlElement(required = true)
    protected GviSmsMessageType.TransmissionRules transmissionRules;

    /**
     * Gets the value of the affiliateCode property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getAffiliateCode() {
        return affiliateCode;
    }

    /**
     * Sets the value of the affiliateCode property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setAffiliateCode(String value) {
        this.affiliateCode = value;
    }

    /**
     * Gets the value of the authenticationCode property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getAuthenticationCode() {
        return authenticationCode;
    }

    /**
     * Sets the value of the authenticationCode property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setAuthenticationCode(String value) {
        this.authenticationCode = value;
    }

    /**
     * Gets the value of the submitDateTime property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getSubmitDateTime() {
        return submitDateTime;
    }

    /**
     * Sets the value of the submitDateTime property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setSubmitDateTime(String value) {
        this.submitDateTime = value;
    }

    /**
     * Gets the value of the messageType property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getMessageType() {
        return messageType;
    }

    /**
     * Sets the value of the messageType property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setMessageType(String value) {
        this.messageType = value;
    }

    /**
     * Gets the value of the recipientList property.
     * 
     * <p>
     * This accessor method returns a reference to the live list,
     * not a snapshot. Therefore any modification you make to the
     * returned list will be present inside the JAXB object.
     * This is why there is not a <CODE>set</CODE> method for the recipientList property.
     * 
     * <p>
     * For example, to add a new item, do as follows:
     * <pre>
     *    getRecipientList().add(newItem);
     * </pre>
     * 
     * 
     * <p>
     * Objects of the following type(s) are allowed in the list
     * {@link RecipientListType }
     * 
     * 
     */
    public List<RecipientListType> getRecipientList() {
        if (recipientList == null) {
            recipientList = new ArrayList<RecipientListType>();
        }
        return this.recipientList;
    }

    /**
     * Gets the value of the customData property.
     * 
     * @return
     *     possible object is
     *     {@link CustomDataType }
     *     
     */
    public CustomDataType getCustomData() {
        return customData;
    }

    /**
     * Sets the value of the customData property.
     * 
     * @param value
     *     allowed object is
     *     {@link CustomDataType }
     *     
     */
    public void setCustomData(CustomDataType value) {
        this.customData = value;
    }

    /**
     * Gets the value of the transmissionRules property.
     * 
     * @return
     *     possible object is
     *     {@link GviSmsMessageType.TransmissionRules }
     *     
     */
    public GviSmsMessageType.TransmissionRules getTransmissionRules() {
        return transmissionRules;
    }

    /**
     * Sets the value of the transmissionRules property.
     * 
     * @param value
     *     allowed object is
     *     {@link GviSmsMessageType.TransmissionRules }
     *     
     */
    public void setTransmissionRules(GviSmsMessageType.TransmissionRules value) {
        this.transmissionRules = value;
    }


    /**
     * <p>Java class for anonymous complex type.
     * 
     * <p>The following schema fragment specifies the expected content contained within this class.
     * 
     * <pre>
     * &lt;complexType>
     *   &lt;complexContent>
     *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
     *       &lt;sequence>
     *         &lt;element name="startDateTime" type="{http://www.w3.org/2001/XMLSchema}string"/>
     *         &lt;element name="endDateTime" type="{http://www.w3.org/2001/XMLSchema}string"/>
     *         &lt;element name="validityPeriod" type="{http://www.w3.org/2001/XMLSchema}string"/>
     *       &lt;/sequence>
     *     &lt;/restriction>
     *   &lt;/complexContent>
     * &lt;/complexType>
     * </pre>
     * 
     * 
     */
    @XmlAccessorType(XmlAccessType.FIELD)
    @XmlType(name = "", propOrder = {
        "startDateTime",
        "endDateTime",
        "validityPeriod"
    })
    public static class TransmissionRules {

        @XmlElement(required = true)
        protected String startDateTime;
        @XmlElement(required = true)
        protected String endDateTime;
        @XmlElement(required = true)
        protected String validityPeriod;

        /**
         * Gets the value of the startDateTime property.
         * 
         * @return
         *     possible object is
         *     {@link String }
         *     
         */
        public String getStartDateTime() {
            return startDateTime;
        }

        /**
         * Sets the value of the startDateTime property.
         * 
         * @param value
         *     allowed object is
         *     {@link String }
         *     
         */
        public void setStartDateTime(String value) {
            this.startDateTime = value;
        }

        /**
         * Gets the value of the endDateTime property.
         * 
         * @return
         *     possible object is
         *     {@link String }
         *     
         */
        public String getEndDateTime() {
            return endDateTime;
        }

        /**
         * Sets the value of the endDateTime property.
         * 
         * @param value
         *     allowed object is
         *     {@link String }
         *     
         */
        public void setEndDateTime(String value) {
            this.endDateTime = value;
        }

        /**
         * Gets the value of the validityPeriod property.
         * 
         * @return
         *     possible object is
         *     {@link String }
         *     
         */
        public String getValidityPeriod() {
            return validityPeriod;
        }

        /**
         * Sets the value of the validityPeriod property.
         * 
         * @param value
         *     allowed object is
         *     {@link String }
         *     
         */
        public void setValidityPeriod(String value) {
            this.validityPeriod = value;
        }

    }

}
